HTMLify
style.css
Views: 10 | Author: huxn-webdev
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | * { margin: 0; padding: 0; box-sizing: border-box; } body { background: #ecf4fb; } .img-gallery { width: 80%; margin: 100px auto 50px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-gap: 30px; } .img-gallery img { width: 100%; cursor: pointer; transition: 1s ease; } .img-gallery img:hover { transform: scale(0.8); box-shadow: 0 32px 75px rgba(68, 77, 136, 0.2); } /* Wrapper */ .imageWrapper { width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.9); position: fixed; top: 0; left: 0; display: none; justify-content: center; align-items: center; z-index: 100; } .imageWrapper img { width: 90%; max-width: 500px; } .imageWrapper span { position: absolute; top: 5%; right: 5%; font-size: 30px; font-family: sans-serif; color: #fff; cursor: pointer; } |